/*
** 304pacman.cpp for 304Pacman in /home/mickael/Math
**
** Made by mickael gomes
** Login   <gomes.mickael@epitech.net>
**
** Started on  jeu. nov.  07 10:16:33 2013 mickael gomes
** Last update jeu. nov.  07 10:16:33 2013 mickael gomes
*/

#include					<iostream>
#include					<fstream>
#include					"File.hh"
#include					"Graphics.hh"
#include          "Algo.hh"

int							main(int ac, char **av)
{
	if (ac != 2)
	{
		std::cout << "One file is required" << std::endl;
		return (1);
	}
	
  File 					file(av[1]);

  if (!file.findGhost())
    return (1);
  file.convertMap();

  Algo          algo(file.getNumMap(), file.getGhostCoord());
  Graphics			graph(file.getNumMap(), file.getGhostCoord(), file.getLen(), file.getHeight(), algo.getPath());

  return 0;
}
